using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.Threading;

namespace 畜牧业审核程序国产;

public partial class OnLoadingBar : Window
{
    public OnLoadingBar()
    {
        InitializeComponent();
    }
    public void UpdateProgress(int value)
    {
        // 在UI线程上更新进度条
        Dispatcher.UIThread.InvokeAsync(() =>
        {

            onLoadingBarControl.Value = value;
        });
    }
}